<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2016/3/24
  Time: 10:59
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
  <head>
    <title>$Title$</title>
  </head>
  <body>
  <script>
    function reloadImage(){
      document.getElementById("btn").disabled = true;
      document.getElementById("picture").src='http://localhost:8080/JavaWeb/servlet/indexServlet?ts='+new Date().getTime();
    }
  </script>
  <img src="http://localhost:8080/JavaWeb/servlet/indexServlet" id="picture" onload=" btn.disabled = false;"/>
  <input type="button" value="换个验证码" onclick="reloadImage()" id = "btn">
  </body>
</html>
